package com.xuanxu.module.system.pojo.dao;

import com.baomidou.mybatisplus.annotation.*;
import com.xuanxu.module.system.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author XuanXu
 * @version 1.0
 * @date 2024-06-16 18:12
 */
@Data
@ApiModel
@TableName("user")
public class UserDO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("email")
    private String email;
    @TableField("type")
    private UserTypeEnum type;
    @TableField(value = "creator", fill = FieldFill.INSERT)
    private String creator;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "updater", fill = FieldFill.INSERT_UPDATE)
    private String updater;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField("is_delete")
    private Integer isDelete;
}
